package com.doushu.websocket;

import com.doushu.websocket.controller.WebSocketServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class WebsocketApplication {

    public static void main(String[] args) {

        SpringApplication.run(WebsocketApplication.class, args);
//        ConfigurableApplicationContext applicationContext = SpringApplication.run(WebsocketApplication.class, args);
//        WebSocketServer.setApplicationContext(applicationContext);
    }
}
